package com.sojson.util.mq.rabbit.interfaces;

import java.util.HashMap;
import java.util.Map;

/**
 * Rabbit声明交换机工具类接口
 * 
 * @author liu
 * @date 2022-06-16
 */
public interface IRabbitBaseExchangeUtil extends IRabbitBaseUtil {

    /**
     * 获取 交换机基础属性
     * 
     * @return
     */
    default Map<String, Object> getBaseExchangeParam() {
        Map<String, Object> map = new HashMap<>(10);
        return map;
    }

    /**
     * 获取 交换机属性
     * 
     * @return
     */
    default Map<String, Object> getExchangeParam() {
        Map<String, Object> map = getBaseExchangeParam();
        return map;
    }

    /**
     * 获取交换机类型
     * 
     * @return
     */
    String getExchangeType();

}